-- GENERATED SPELL FOR [Elder Stranglethorn Tiger] --


function spell0_1085(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16831,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1085', 564, 1)
end

function spell1_1085(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1085', 0, 1)
end

function spell2_1085(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1085', 15000, 1)
end

function Sorts_1085(pUnit, Event)
local choix_sorts_1085 = math.random(0, 2)
if choix_sorts_1085 == 0 then
pUnit:RegisterEvent('spell0_1085', 1, 1)
end
if choix_sorts_1085 == 1 then
pUnit:RegisterEvent('spell1_1085', 1, 1)
end
if choix_sorts_1085 == 2 then
pUnit:RegisterEvent('spell2_1085', 1, 1)
end
end

function mob1085_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1085', math.random(1500, 3000), 1)
end

function mob1085_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1085_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1085_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1085, 1, 'mob1085_Action')
RegisterUnitEvent(1085, 2, 'mob1085_Leave')
RegisterUnitEvent(1085, 3, 'mob1085_Kill')
RegisterUnitEvent(1085, 4, 'mob1085_Die')
